package com.huajx.tb.handler;

import com.huajx.core.handler.HandlerAdapter;
import com.huajx.core.message.RequestMessage;
import com.huajx.core.message.ResponseMessage;
import com.huajx.tb.dto.NengLongMessage;
import org.apache.mina.core.session.IoSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 必跳处理
 *
 */
public class KeepAliveHandler extends AbstractNengLongHandler {
	protected final Logger logger = LoggerFactory.getLogger(KeepAliveHandler.class);

	@Override
	public ResponseMessage handler(RequestMessage request) {
		NengLongMessage message = getMessage(request.getMessage());

		render(request.getSession(), message, "");

		return null;
	}

	@Override
	public void render(IoSession session) {

	}

	public static final HandlerAdapter me = new KeepAliveHandler();
}
